#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
                            _ooOoo_  
                           o8888888o  
                           88" . "88  
                          (|  -_-  |)  
                           O\  =  /O  
                        ____/`---'\____  
                      .   ' \\| |// `.  
                       / \\||| : |||// \  
                     / _||||| -:- |||||- \  
                       | | \\\ - /// | |  
                     | \_| ''\---/'' | |  
                      \ .-\__ `-` ___/-. /  
                   ___`. .' /--.--\ `. . __  
                ."" '< `.___\_<|>_/___.' >'"".  
               | | : `- \`.;`\ _ /`;.`/ - ` : | |  
                 \ \ `-. \_ __\ /__ _/ .-` / /  
         ======`-.____`-.___\_____/___.-`____.-'======  
                            `=---='  
  
         .............................................  
                  佛祖镇楼                  BUG辟易  
          佛曰:  
                  写字楼里写字间，写字间里程序员；  
                  程序人员写程序，又拿程序换酒钱。  
                  酒醒只在网上坐，酒醉还来网下眠；  
                  酒醉酒醒日复日，网上网下年复年。  
                  但愿老死电脑间，不愿鞠躬老板前；  
                  奔驰宝马贵者趣，公交自行程序员。  
                  别人笑我忒疯癫，我笑自己命太贱；  
                  不见满街漂亮妹，哪个归得程序员？ 
'''
# @File  : 5.py
# @Author: huguangzhi
# @Drivce: Thinkpad E470
# @ContactEmail : huguangzhi@ucsdigital.com.com 
# @ContactPhone : 13121961510 
# @Date  : 2021/9/2 - 17:29
# @Desc  :
f = "0298a040142000000001c96d20323241000000000000000020423143133000000003198d20323144020000000002168d2020314513300000000220722032314911300000000222aa2032304a11300000000218fe2032304b1130000000021d1b2032304c113000000002313a2032305201100000000000002020475301000000000000002020475702000000000000002020325800000000000000002020474213300000000361e4203232460000000088ee01002042314f0100000077090000202047500100000016e401002020475101000000e35e01002020474e01000000621e00002020475601000000de3b0000202047590100000022a001002020475a00000000215800002042315b01000000023b01002020475d01000000a57d0700202047624214000000002c14202032664710000000017e6c20203867000000000000000020204768123000000000000c2032316900000000000000002020472a00000000000000000000006b010000008e1500002020476c01000000e60400002020476d80100000203100002042312e00000000000000000000006f010000002a8000002020473200000000000000000000007301000000d02b000020204776010000005e0f0000202047470f2000008c620200203137480100000096cd02002020474d01240000456e00002020475441100000000000002020475501000000000000002020475c02000000c91100002020315e00000000000000002042315f9010000000040fda203138601430000000047cc720323261100000000000228f20313863141000000002b9db20323264800000000e480600204231654f100000a12d060020313770020000000000000020203171012000000000000020204774420000000000000020203175802000000000000020423195"
sum_by = 0
for str_by in range(0,len(f[:-2]),2):
    str_10 = int(f[str_by:str_by+2], 16)
    print(f[str_by:str_by+2], end="")
    print(" --- "+str(str_10))
    sum_by += str_10
print(sum_by)
print(~sum_by)
str_sum_bin = '{:016b}'.format(sum_by)
print(str_sum_bin)

str_sum_bin_t = str_sum_bin[::-1]
print(str_sum_bin_t)
str_sum_bin_t_2 = int(str_sum_bin_f,2)
str_16 = "{0:x}".format(str_sum_bin_t_2)
print(str_16)
print(f[-2:])